package com.hzvdvmc.autosale.sale.ui;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.TextView;

import com.hzvdvmc.autosale.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by william on 2018/3/3.
 */

public class NetStateDialog extends BaseDialog {

    @BindView(R.id.tv_content)
    TextView tvContent;

    public NetStateDialog(@NonNull Context context, int themeResId) {
        super(context,  themeResId);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_netstate);
        ButterKnife.bind(this);
        setCanceledOnTouchOutside(false);
    }

    public void setText(String text) {
        if (tvContent != null) {
            tvContent.setText(text);
        }
    }
}
